/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-12-09 17:24:08  
 * Copyright (c) 2015- joysuch-版权所有     
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.bean.BpExamStandardDetailBean;
import com.joysuch.wwyt.bp.bean.BpExamStandardEditBean;
import com.joysuch.wwyt.bp.bean.BpExamStandardListBean;
import com.joysuch.wwyt.bp.entity.BpExamStandard;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import static com.joysuch.wwyt.bp.bean.BpExamStandardListBean.Search;

public interface BpExamStandardService {

    public BpExamStandard add(BpExamStandardEditBean entity) throws Exception;

    void update(BpExamStandardEditBean entity) throws Exception;

    Page<BpExamStandardListBean> findByPage(Pageable page, Search condition);
    
    void delete(Long id) throws BusinessRestrictionsException;

    BpExamStandardDetailBean getById(Long id);
    
    BpExamStandard findById(Long id);

    Boolean isNum(String str);

    String getNumberString(String str);

    /**
     * 更改考核标准状态
     * @param id    指定考核标准 ID
     * @param isPass    是否通过审核（true:通过；false:减少）
     * @param auditRemark   审核意见
     *  【备注：isPass 和 auditRemark 属性，仅在状态为等待审核时生效】
     */
    void changeStateByAudit(Long id, Boolean isPass, String auditRemark);

}
